<template>
  <div style="text-align:center;margin-top:100px">
    <h1 class="wait">门店审核审核通过！</h1>
    <el-button type="success" @click="btn">进入门店</el-button>
  </div>
</template>

<script>
import { getDor } from "@/api/admin";
import { changeStatus } from "@/api/admin";
import { mapState } from "vuex";
import Axios from "axios";
export default {
  computed: {
    ...mapState("user", ["_id"])
  },
  methods: {
     btn() {
      changeStatus({_id:this._id},{status:1}).then(res=>{
         if (res.data.ok) {
           this.$router.replace("/home")
         }
      })
    }
  }
};
</script>

<style>
.wait {
  width: 700px;
  height: 200px;
  margin: auto;
  font-weight: bold;
  font-size: 60px;
  padding: 80px 0;
  color: darkorange;
}
</style>